package com.tllq.zhongkang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tllq.zhongkang.entity.Order;
import com.tllq.zhongkang.mapper.OrderMapper;
import com.tllq.zhongkang.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Autowired
    OrderMapper orderMapper;

    @Override
    public List<Order> findOrderByTime(String startTime, String endTime) {
        return orderMapper.findOrderByTime(startTime,endTime);
    }
}
